<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
import('ViewModel');
class ForumViewModel extends ViewModel{
   public $viewFields=array(
       
        'forum'=>array('id'=>'forum_id','ownner_id','forum_name','parent_forum_id','parent_forum_name','type','state','banner','theme_count','_as'=>'f','_type'=>'left'),
        //'user'=>array('id'=>'user_id','_as'=>'u','_on'=>'f.ownner_id=u.id','_type'=>'left')
        //'posts'=>array('id'=>'p_id','theme','content','dateline','author_id','author','forum_id','mood','is_good','_as'=>'p','_on'=>'f.id=p.forum_id','_type'=>'left')
    );
}
?>
